#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([ADD_UI], [4.1], [johan.luisier@gmail.com])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lQtCore':
AC_CHECK_LIB([QtCore], [main])
# FIXME: Replace `main' with a function in `-lQtGui':
AC_CHECK_LIB([QtGui], [main])
# FIXME: Replace `main' with a function in `-lQtXml':
AC_CHECK_LIB([QtXml], [main])
# FIXME: Replace `main' with a function in `-lpthread':
AC_CHECK_LIB([pthread], [main])

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS([mkdir])

# Checks for boost headers
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([boost/lexical_cast.hpp], [], [exit])
AC_CHECK_HEADERS([boost/assign/list_of.hpp], [], [exit])
AC_CHECK_HEADERS([boost/lambda/lambda.hpp], [], [exit])
AC_LANG_POP([C++])

AC_CONFIG_FILES([src/Base/Makefile])
AC_OUTPUT

qmake-qt4
